<?php

use App\Http\Controllers\JobsController;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\UserController;
use Illuminate\Http\Request;


Route::get('/', function () {
    return view('welcome');
});

//浏览器访问 http://66.laravel.com/create-user-with-balance
Route::get('/create-user-with-balance', [UserController::class, 'createUserWithBalance']);
Route::get('/jobs', [JobsController::class, 'index']);
Route::put('/jobs/{userId}/balance', [JobsController::class, 'updateBalance']);

